package org.sys.transporttrainsys.repository;

import org.sys.transporttrainsys.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StudentRepository extends JpaRepository<Student, Long> {
    List<Student> findByName(String name);
    List<Student> findByOrganizationId(Long organizationId);
    List<Student> findByNameAndOrganizationId(String name, Long organizationId);
}